package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * EntitiesTypes generated by hbm2java
 */
@Entity
@Table(name="entities_types"
    ,catalog="madr_bd10"
)
public class EntitiesTypes  implements java.io.Serializable {


     private Integer idEntTyp;
     private String nameEntTyp;
     private Set entitieses = new HashSet(0);

    public EntitiesTypes() {
    }

	
    public EntitiesTypes(Integer idEntTyp) {
        this.idEntTyp = idEntTyp;
    }
//    public EntitiesTypes(String nameEntTyp) {
//        this.nameEntTyp = nameEntTyp;
//    }
    public EntitiesTypes(String nameEntTyp, Set entitieses) {
       this.nameEntTyp = nameEntTyp;
       this.entitieses = entitieses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_ent_typ", unique=true, nullable=false)
    public Integer getIdEntTyp() {
        return this.idEntTyp;
    }
    
    public void setIdEntTyp(Integer idEntTyp) {
        this.idEntTyp = idEntTyp;
    }
    
    @Column(name="name_ent_typ", nullable=false, length=45)
    public String getNameEntTyp() {
        return this.nameEntTyp;
    }
    
    public void setNameEntTyp(String nameEntTyp) {
        this.nameEntTyp = nameEntTyp;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="entitiesTypes")
    public Set getEntitieses() {
        return this.entitieses;
    }
    
    public void setEntitieses(Set entitieses) {
        this.entitieses = entitieses;
    }




}


